package com.lagou.io;

import lombok.extern.slf4j.Slf4j;

import java.io.InputStream;

/**
 * 资源解析类
 *
 * @author Tengfei.Wang
 * @date 26/8/2020
 */
@Slf4j
public class Resources {

    public static InputStream getResourceAsStream(String path) {
        log.info("loading file {}", path);
        return Resources.class.getClassLoader().getResourceAsStream(path);
    }
}
